package com.ruoyi.training.service;

import java.util.List;
import com.ruoyi.training.domain.Invoice;
import com.ruoyi.training.dto.payment.InvoiceRefundDto;
import com.ruoyi.training.vo.payment.ChangeInvoiceVo;
import com.ruoyi.training.vo.payment.InvoiceRefundVo;

/**
 * 发票信息Service接口
 * 
 * @author hcc
 * @date 2025-09-29
 */
public interface IInvoiceService 
{
    /**
     * 查询发票信息
     * 
     * @param invoiceId 发票信息主键
     * @return 发票信息
     */
    public Invoice selectInvoiceByInvoiceId(String invoiceId);

    /**
     * 查询发票信息列表
     * 
     * @param invoice 发票信息
     * @return 发票信息集合
     */
    public List<Invoice> selectInvoiceList(Invoice invoice);

    /**
     * 新增发票信息
     * 
     * @param invoice 发票信息
     * @return 结果
     */
    public int insertInvoice(Invoice invoice);

    /**
     * 修改发票信息
     * 
     * @param invoice 发票信息
     * @return 结果
     */
    public int updateInvoice(Invoice invoice);

    /**
     * 批量删除发票信息
     * 
     * @param invoiceIds 需要删除的发票信息主键集合
     * @return 结果
     */
    public int deleteInvoiceByInvoiceIds(String[] invoiceIds);

    /**
     * 删除发票信息信息
     * 
     * @param invoiceId 发票信息主键
     * @return 结果
     */
    public int deleteInvoiceByInvoiceId(String invoiceId);

    /**
     * 获取退换票申请信息
     */
    public InvoiceRefundDto getInvoiceRefundInfo(InvoiceRefundVo invoiceRefundVo);

    /**
     * 批量修改发票状态
     */
    public int changeInvoiceStatus(ChangeInvoiceVo changeInvoiceVo);

    /**
     * 获取个人发票退换信息
     */
    public InvoiceRefundDto getInvoiceRefundInfoPerson(String invoiceId);
}
